﻿using MyX.Store;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyX.Provider
{
    internal class EntitySaveObserverProvider : IProvider
    {
        public object Get()
        {
            return _observer;
        }

        public T Get<T>()
        {
            return (T)Get();
        }

        private XEntitySaveObserver _observer = new XEntitySaveObserver();
    }

    internal class EntitySendObserverProvider : IProvider
    {
        public object Get()
        {
            return _observer;
        }

        public T Get<T>()
        {
            return (T)Get();
        }

        private XEntitySendObserver _observer = new XEntitySendObserver();
    }
}
